﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserInfo.aspx.cs"  Inherits="UserInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../layui/css/layui.css" rel="stylesheet" />
</head>
<body>
     <blockquote class="layui-elem-quote news_search">
        <div class="layui-inline">
            <button class="layui-btn site-demo-active" data-type="tabAdd" id="AddUser">添加用户信息</button>
        </div>
    </blockquote>
    <table class="layui-table" lay-data="{ url:'../API/UsersListHandler.ashx',loading:true, page:true, id:'userList'}" lay-filter="userbar" width="100%">
        <thead>
            <tr>
                <th lay-data="{field:'UserID', sort: true}">用户编号</th>
                <th lay-data="{field:'UserName', sort: true , edit: 'text'}">用户名</th>
                <th lay-data="{field:'Name', sort: true , edit: 'text'}">姓名</th>
                <th lay-data="{field:'UserType', sort: true , edit: 'text'}">用户类型</th>
                <th lay-data="{field:'Time', sort: true , edit: 'text'}">创建时间</th>
                <th lay-data="{field:'Address', sort: true, edit: 'text'}">收货地址</th> 
                <th lay-data="{fixed: 'right', align:'center', toolbar: '#userListbar'}">操作按钮</th>
            </tr>
        </thead>
    </table>
    <script type="text/html" id="userListbar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">详细</a>
    </script>
</body>
</html>
<script src="../../layui/layui.js"></script>
<script src="../../js/Info.js"></script>
